package Classes.GameViews.ViewIcons
{	
	import Classes.Managers.M_LoadSWFSource;
	
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	import flash.system.ApplicationDomain;

	/** 
	 * 矢量图处理类
	 * @author thy
	 * @version 1.0.0 
	 * 创建时间：Mar 27, 2012 5:34:32 PM 
	 */ 
	public class VI_VectorIcon extends ViewIcon
	{
		public function VI_VectorIcon(sourceName:String,picName:String)
		{
			super(sourceName,picName);
			super.type=0;
		}
		
		override public function initFun():void
		{
			M_LoadSWFSource.instance.needLoad(this,this.sourcePath,this.sourceName)
		}
		
		/**
		 *创建ICON显示对象 
		 * @param iconType
		 * 
		 */		
		public static function creat(creatObj:Object):VI_VectorIcon
		{
			return new VI_VectorIcon(creatObj.sourceName,creatObj.picName);
		}
		
		override public function sourceLoadOver(sourceName:String):void
		{
			var mcCartoon:MovieClip=new (ApplicationDomain.currentDomain.getDefinition(this.picName) as Class);
			this.addChild(mcCartoon);
			mcCartoon.name="pic"
		}
	}
}
